package com.kuang.demo.bean.GoodsBean.GoodsBO;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

public class GoodsAddList {
    /**
     * goods : {"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/usi8vhpir45tti3c7viz.jpg","gallery":["http://182.92.235.201:8083/wx/storage/fetch/7e6co4v4o29i2llk0h2r.jpg"],"brandId":1001000,"unit":"1","keywords":"1","categoryId":1008005,"brief":"test","detail":"<p>test<\/p>","goodsSn":"100023","name":"test1","counterPrice":"100","retailPrice":"2000","isNew":true,"isHot":false,"isOnSale":true}
     * specifications : [{"specification":"test1","value":"1","picUrl":"http://182.92.235.201:8083/wx/storage/fetch/r8g6f2dhuhtqhrp5ac51.jpg"}]
     * products : [{"id":0,"specifications":["1"],"price":"1","number":"1","url":"http://182.92.235.201:8083/wx/storage/fetch/anr98yx1rvdls2rcb2kz.jpg"}]
     * attributes : [{"attribute":"test1","value":"1123"}]
     */

    private GoodsBean goods;
    private List<SpecificationsBean> specifications;
    private List<ProductsBean> products;
    private List<AttributesBean> attributes;

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public List<SpecificationsBean> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<SpecificationsBean> specifications) {
        this.specifications = specifications;
    }

    public List<ProductsBean> getProducts() {
        return products;
    }

    public void setProducts(List<ProductsBean> products) {
        this.products = products;
    }

    public List<AttributesBean> getAttributes() {
        return attributes;
    }

    public void setAttributes(List<AttributesBean> attributes) {
        this.attributes = attributes;
    }

    @Data
    public static class GoodsBean {
        /**
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/usi8vhpir45tti3c7viz.jpg
         * gallery : ["http://182.92.235.201:8083/wx/storage/fetch/7e6co4v4o29i2llk0h2r.jpg"]
         * brandId : 1001000
         * unit : 1
         * keywords : 1
         * categoryId : 1008005
         * brief : test
         * detail : <p>test</p>
         * goodsSn : 100023
         * name : test1
         * counterPrice : 100
         * retailPrice : 2000
         * isNew : true
         * isHot : false
         * isOnSale : true
         */

        private String picUrl;
        private int brandId;
        private String unit;
        private String keywords;
        private int categoryId;
        private String brief;
        private String detail;
        private String goodsSn;
        private String name;
        private BigDecimal counterPrice;
        private BigDecimal retailPrice;
        private boolean isNew;
        private boolean isHot;
        private boolean isOnSale;
        private List<String> gallery;
    }

    public static class SpecificationsBean {
        /**
         * specification : test1
         * value : 1
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/r8g6f2dhuhtqhrp5ac51.jpg
         */

        private String specification;
        private String value;
        private String picUrl;

        public String getSpecification() {
            return specification;
        }

        public void setSpecification(String specification) {
            this.specification = specification;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }
    }

    @Data
    public static class ProductsBean {
        /**
         * id : 0
         * specifications : ["1"]
         * price : 1
         * number : 1
         * url : http://182.92.235.201:8083/wx/storage/fetch/anr98yx1rvdls2rcb2kz.jpg
         */

        private int id;
        private BigDecimal price;
        private int number;
        private String url;
        private List<String> specifications;
    }

    public static class AttributesBean {
        /**
         * attribute : test1
         * value : 1123
         */

        private String attribute;
        private String value;

        public String getAttribute() {
            return attribute;
        }

        public void setAttribute(String attribute) {
            this.attribute = attribute;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
